/**
 * 
 */
package net.helpfulwebservices.cogitologopedia;

/**
 * @author utente
 *
 */
public class GameInfo {

	private int x;
	private int y;
	
	
	
	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}



	/**
	 * @param x the x to set
	 */
	public void setX(int x) {
		this.x = x;
	}



	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}



	/**
	 * @param y the y to set
	 */
	public void setY(int y) {
		this.y = y;
	}



	public GameInfo(String p){
		String[] temp;
		 
		String delimiter = "x";
		temp = p.split(delimiter);
		
		this.setX(Integer.parseInt(temp[0]));
		this.setY(Integer.parseInt(temp[1]));
		 	
	}



	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "gameinfo [x=" + x + ", y=" + y + "]";
	}
	
	
	
}
